home *** CD-ROM | disk | FTP | other *** search
/ 5 Star Games: DOS Edition 2 / 5 Star Games - DOS Edition (1995)(Ready to Run).iso / dbc / db_list.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-06  |  1.8 KB  |  55 lines

  1. /****************************************************************************/
  2. /*                 HEADER FILE FOR DATABOSS MODULE: DB_LIST                 */
  3. /****************************************************************************/
  4.  
  5. /*******************************  CONSTANTS  ********************************/
  6.  
  7. #define maxl 45
  8.  
  9. /*********************************  TYPES  **********************************/
  10.  
  11. typedef strptr (*keyexprproc)(strptr sout, int fno, int kno, keystr keyvar);
  12. typedef void   (*getrecproc)(int fno);
  13. typedef strptr (*getstrfunc)(string sout, uchar mode, byte fno, byte kno);
  14. typedef long   recnotyp[16+1];     /* Zeroth element not used */
  15. typedef bool   recavailtyp[16+1];  /* Zeroth element not used */
  16.  
  17. typedef struct {
  18.     long   ref;
  19.     string dsp;
  20. } tabtyp;
  21. typedef tabtyp rectabtyp[maxl+1];  /* Zeroth element not used */
  22. typedef rectabtyp *rectabptr;
  23.  
  24. typedef struct {
  25.     byte x,y,w,h;
  26. } findwtyp;
  27.  
  28. typedef enum {Up_N_Down,Link_Down,No_Link} linktyp;
  29.  
  30. /*************************  INITIALIZED VARIABLES  **************************/
  31.  
  32. extern bool  oldFindMethod;       /* = True; */
  33.  
  34. /*******************************  VARIABLES  ********************************/
  35.  
  36. extern byte        lwid;
  37. extern bool        brief;
  38. extern bool        listing;
  39. extern recnotyp    recno;
  40. extern recavailtyp recavail;
  41. extern rectabptr   rectab;
  42. extern linktyp     link;
  43. extern keyexprproc _keyexpr;
  44. extern getrecproc  _getarec;
  45. extern getstrfunc  _horizrec;
  46.  
  47. /*******************************  PROTOTYPES  *******************************/
  48.  
  49. strptr defaultdata(string sout, ptr fb);
  50. long   list_n_choose(byte _fno, byte _kno, keystr _kystr, indexfile *_idx, findwtyp wdim);
  51.  
  52. void db_list_init(void);
  53.  
  54. /***************************** END OF DB_LIST.H *****************************/
  55.